/** When your routing table is too long, you can split it into small modules **/

import Layout from '@/layout'

const ruleRouter = {
  path: '/RuleConfiguration',
  component: Layout,
  redirect: '/RuleConfiguration/RuleSynchronization',
  name: 'audit',
  meta: {
    title: '规则配置',
    icon: 'tree',
    roles:['operator','root']
  },
  children: [
    {
      path: 'RuleSynchronization',
      name: 'RuleSynchronization',
      component: () => import('@/views/RuleConfiguration/RuleSynchronization'),
      meta: { title: '同步规则', icon: 'dian' }
    },
    {
      path: 'TimeObject',
      name: 'TimeObject',
      component: () => import('@/views/RuleConfiguration/TimeObject'),
      meta: { title: '时间对象', icon: 'dian' }
    }
  ]
}

export default ruleRouter
